package com.markerhub.mapper;

import com.markerhub.entity.Discussion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2022-11-21
 */
@Component
public interface DiscussionMapper extends BaseMapper<Discussion> {

    @Delete("Delete from m_discussion where id=#{id}")
    int delete(@Param("id") int id);

}
